package com.zyk.scaffold.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zyk.scaffold.core.domain.PageFilter;
import com.zyk.scaffold.core.domain.PageResult;
import com.zyk.scaffold.user.controller.tenantrole.*;
import com.zyk.scaffold.user.entity.TenantRole;

import java.util.List;

/**
 * <p>
 * 用户-角色表 服务类
 * </p>
 *
 * @author zhouyk
 * @since 2021-12-06
 */
public interface TenantRoleService extends IService<TenantRole> {

    List<TenantRole> getRolesByIds(List<Long> roleIds, String tenantCode);

    Boolean newRole(TenantRoleNewRequ tenantRoleNewRequ, Long userId, String tenantCode);

    PageResult<TenantRoleInfosResp> pageFilterRole(PageFilter<TenantRolePageFilterRequ> pageFilter, String tenantCode);

    Boolean editedRole(TenantRoleEditedRequ tenantRoleEditedRequ, Long userId, String tenantCode);

    Boolean deletedRole(TenantRoleDeletedRequ tenantRoleDeletedRequ, Long userId, String tenantCode);

    List<TenantRoleInfosResp> listRoleAll(String tenantCode);

}
